package com.max.xihu.collection;

import java.util.LinkedList;
import java.util.List;

/**
 * @Author: Max
 * @Date: 2020-04-11 20:31
 * @Description:
 */
public class LinkedListDemo {

    public static void main(String[] args) {

        List<String> list = new LinkedList<>();
        list.add("abc");
        list.add("def");
        list.add("hil");
        list.add("woo");
        list.add("hhh");
        System.out.println(list);
        System.out.println(((LinkedList<String>) list).remove());

    }

    public class Linked{
        private String list;

        public String getList() {
            return list;
        }

        public void setList(String list) {
            this.list = list;
        }
    }
}
